"use client";
import { FC, useLayoutEffect, useState } from "react";

interface IndexProps {}

const Index: FC<IndexProps> = () => {
  const [account, setAccount] = useState("");
  useLayoutEffect(() => {
    let user = JSON.parse(localStorage.getItem("user") || "{}");
    setAccount(user.account);
  }, []);
  return <>{account}</>;
};

export default Index;
